

<div class="box">
	<div class="header">
		Quản lý thông tin nhà cung cấp
	</div>
	<div class="body">
		<div class="panes">
			<div>
				<a href="<{$APPLICATION_URL}>/Admin/Supplier/add">Tạo mới nhà cung cấp</a>
				<table border="0" cellpadding="0" cellspacing="0" class="grid_table wf">
					<thead>
						<tr>
							<th width="10">ID</th>
							<th width="">Tên nhà cung cấp</th>
							<th>Địa chỉ</th>
							<th>Điện thoại</th>
							<th>Website</th>
							<th>Logo</th>
						</tr>
					</thead>
					<tbody>
						<{foreach from=$SupplierEntities item=item name=supplierEntities  }>
						<tr>
							<td><{$item->id}></td>
							<td><{$item->supplier_name}></td>
							<td><{$item->supplier_address}></td>
							<td><{$item->phone}></td>
							<td><{$item->website}></td>
							<td><img src="<{$item->getThumb()}>"></td>
							<td valign="middle">
								<div style="">
									<a href="<{$APPLICATION_URL}>/Admin/Supplier/edit/id/<{$item->id}>">
										<img src="<{$APPLICATION_URL}>/Themes/Default/Images/b_edit.png" alt="" />
									</a>
									<a href="javascript:void(0);" onclick="if (confirm('Are you sure you want to delete this record?')) { deleteAction(<{$adminCityEntity->id}>); } else { return false; }" class="notboldText">
										<img src="<{$APPLICATION_URL}>/Themes/Default/Images/b_drop.png" alt="" />
									</a>
								</div>
							</td>
						</tr>
						<{/foreach}>
					</tbody>
				</table>
			</div>
			
			<div class="paging" style="text-align:center;">
			<{$pageLink}>
			</div>
		</div>
	</div>
</div>
<form name="frmDelete" method="post">
<input type="hidden" name="idValue" value="" />
<input type="hidden" id="actionKey" name="actionKey" value="<{$actionKey}>" />
</form>
<script type="text/javascript">
function deleteAction(value){
	var theform = document.frmDelete;
	theform.idValue.value = value;
	theform.action = "<{$APPLICATION_URL}>/Admin/Supplier/delete";
	theform.submit();
	return true;
}
</script>